﻿@{
    Layout = null;
    ViewBag.Title = "登录";
}
<html>
<head>
    <meta charset="UTF-8">
    <title>登录</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="renderer" content="webkit">
    <meta name="keywords" content="">
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
    <meta name="format-detection" content="telphone=no, email=no" />
    <meta name="full-screen" content="yes">
    <meta name="x5-fullscreen" content="true">
    <meta name="msapplication-tap-highlight" content="no">
    <link rel="stylesheet" type="text/css" href="~/Content/css/reset.css" />
    <link rel="stylesheet" type="text/css" href="~/Content/css/swiper.min.css" />
    <link rel="stylesheet" type="text/css" href="~/Content/css/gelunbu.css" />
    <script src="~/Content/js/jquery-3.2.1.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="~/Content/js/layer/1.9.3/layer.js"></script>
    <script src="~/Content/js/web.js"></script>
    <script type="text/javascript">
        function login() {
            if ($("#name").val() == "" || $("#password").val() == "") {
                layer.msg("请输入账号和密码");
                return;
            }
            ajax({
                url: '/Home/LoginPost',
                data: { UserName: $("#name").val(), Password: $("#password").val() },
                actions: 'redirect',
				success_msg:'登录成功',
                redirect: '/User/UserInfo/'
            });
        }
    </script>
</head>
<body>
    <div class="login">
            <section class="group-ipt">
                <input type="text" class="reset_pwd_ipt" id="name" contenteditable="" placeholder="账号"  />
            </section>
            <section class="group-ipt">
                <input type="password" class="reset_pwd_ipt" id="password" contenteditable="" placeholder="密码" />
            </section>
            <section class="group-ipt">
                <input type="button" onclick="login()" value="登录" class="complete_btn" />
            </section>
            <section class="group-ipt">
                <a href="javascript:;" class="forget_pwd sign-a">忘记密码</a>
                <a href="/Home/Register" class="code_login sign-a">注册</a>
            </section>
    </div>
</body>
</html>